
import javax.swing.*;

 class GraphicsUtils extends JFrame
{
  //parametorized constructor
    public void SwingWindow(String header, int width, int depth, int x, int y)
   {
      setSize(850,600);
      setTitle(header);
      setLocation(x,y);
      setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	 setVisible(true);
   }

	//set appearance
    public static void setNativeLookAndFeel()
   {
      try
      {
         UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
      }
          catch(Exception e)
         {
            System.out.println("Error setting native LAF: "+e);
         }
   }

    public static void setJavaLookAndFeel()
   {
      try
      {
         UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
      }
          catch(Exception e)
         {
            System.out.println("Error setting Java LAF: "+e);
         }
   }

   /* public static void setMotifLookAndFeel()
   {
      try
      {
         UIManager.setLookAndFeel("com.sun.java.swing.plaf.motif.MotifLookAndFeel");
      }
          catch(Exception e)
         {
            System.out.println("Error setting Mofit LAF: "+e);
         }
   }*/
		
}//end of GraphicsUtils
